home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / syncache.scr < prev    next >
Encoding:
Text File  |  1994-08-08  |  1.8 KB  |  62 lines

  1. * Ensures that logical blocks in the cache memory,
  2. * within the specified range, have their most recent
  3. * data value recorded on the physical medium.
  4.  
  5. @THREAD SYNCACHE.LOG
  6. @NEWALIAS SADD SCSIADD.GRA
  7. @IMPORT SCSICOM.SCR
  8. SADD DD_OPEN
  9.  
  10. * 0=Async mode, 1=Sync mode
  11. SADD SET MODE=1
  12.  
  13. * Command completion timeout (Secs)
  14. * 0=the assigned value is the default set by the driver,
  15. * -1=the assigned value is infinite.
  16. SADD SET TIMEOUT=0
  17.  
  18. * Name for paramblock
  19. SADD SET LABEL = "READ CAPACITY"
  20.  
  21. SADD READCAPACITY
  22.  
  23. * SADD SET LOGICAL_BLOCK_SIZE = 512
  24. **  SADD SET BUF_CLUSTER_SIZE = 2
  25.  
  26. * 1(Status returned as soon as the command descriptor block is validated)
  27. * 0(Status returned after the operation is complete)
  28.   SADD SET STATUS_RETURN_IMMED = 0
  29.  
  30. * 32bit starting logical block addr
  31. SADD SET LOGICAL_BLOCK_ADDR = 0
  32.  
  33. *STARTING LOGICAL BLOCK ADDR
  34. *SADD RESPONSE $PROMPT="ENTER STARTING LOGICAL BLOCK ADDR : " $RESPONSE=LOGICAL_BLOCK_ADDR $PAUSE=15
  35.  
  36. *  0 = indicates that the logical block address field
  37. *      specifies the first logical block of the range of
  38. *      logical blocks to be operated on by this command.
  39. *  1 = indicates that the logical block address field is
  40. *      a two's complement displacement.  This -ve or +ve
  41. *      displacement shall be added to the logical block
  42. *      address last accessed on the logical unit to form the
  43. *      logical block address for this command.
  44. SADD SET ADDR_MODE=0
  45.  
  46. * Reserved - set to zero
  47. SADD SET CDB_BYTE6=0
  48.  
  49. * No. of contiguous logical blocks to be read
  50. SADD SET NUM_BLOCKS = 2
  51.  
  52. *NO. OF CONTIGOUS LOGICAL BLOCKS TO BE READ
  53. *SADD RESPONSE $PROMPT="ENTER # OF LOGICAL BLOCKS : " $RESPONSE=NUM_BLOCKS $PAUSE=15
  54.  
  55. * Name for paramblock
  56. SADD SET LABEL = "SYNC CACHE"
  57.  
  58. SADD SYNC_CACHE
  59.  
  60. SADD DD_CLOSE
  61.  
  62.